package com.odd.webapp.businessobjects;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


/**
 * TODO Category class-level Javadoc.
 *
 * <p>...</p>
 *
 */
@PersistenceCapable
public class Category extends Auditing implements java.io.Serializable {
  
  @Persistent
  private String fullName;
  @Persistent
  private String parentName;
  @Persistent
  private String name;
  @Persistent
  private String description;
  
  public Category(){}
  
  public Category(String parentName,String name){
    this.fullName = parentName + "." + name;
    this.parentName = parentName;
    this.name = name;
  }
  /**
   * @return the name
   */
  public String getName() {
    return name;
  }
  /**
   * @param name the name to set
   */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * @return the fullName
   */
  public String getFullName() {
    return fullName;
  }

  /**
   * @param fullName the fullName to set
   */
  public void setFullName(String fullName) {
    this.fullName = fullName;
  }

  /**
   * @return the packageName
   */
  public String getParentName() {
    return parentName;
  }

  /**
   * @param packageName the packageName to set
   */
  public void setParentName(String parentName) {
    this.parentName = parentName;
  }

  /**
   * @return the description
   */
  public String getDescription() {
    return description;
  }

  /**
   * @param description the description to set
   */
  public void setDescription(String description) {
    this.description = description;
  }
  
}
